import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'
//初始化样式文件
import '@/styles/common.scss'
//引入懒加载指令插件并注册
import {lazy_load_img} from '@/directives/lazy-load'
//引入全局组件插件
import {componentsPlugin} from '@/components/index'

import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
const app = createApp(App)
const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)
app.use(pinia)
app.use(router)
app.use(lazy_load_img)
app.use(componentsPlugin)
app.mount('#app')


